ISlave.EoeSetSlaveEoeIp method
Configures an EtherCAT slave's Ethernet over EtherCAT (EoE) network settings. For more information about EoE, see Ethernet over EtherCAT.
Namespace: IntervalZero.KINGSTAR.Base.Class
Assembly: IntervalZero.KINGSTAR.Base.Class (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0
Syntax
IKsCommand EoeSetSlaveEoeIp(
byte[] mac,
byte[] ip,
byte[] subnet,
byte[] gateway,
byte[] dns,
string dnsName
)
Function EoeSetSlaveEoeIp(
mac As Byte(),
ip As Byte(),
subnet As Byte(),
gateway As Byte(),
dns As Byte(),
dnsName As String
) As IKsCommand
Parameters
mac
Type: byte[]
The MAC address of the slave.
ip
Type: byte[]
The IP address of the slave.
subnet
Type: byte[]
The subnet of the slave.
gateway
Type: byte[]
The gateway of the slave.
dns
Type: byte[]
The DNS of the slave.
dnsName
Type: string
The DNS name of the slave.
Return value
Type: IKsCommand
Returns the states of a method.
Remarks
- If the EtherCAT slave supports EoE, and in RTX64 Control Panel, under Network and interfaces, in Manage interfaces, Device is set to RTX64 Virtual Network Interface. In Advanced NAL properties > TCP/IP Stack properties, Filter Name is set to
KSeoe.rtdll
, the slave will automatically get an IP address when it is started. - The IP, subnet, gateway, and DNS are usually represented as "1.2.3.4". Each of the four values is in the 0–255 range and can be stored in a byte.
- For more details about EoE configuration in KINGSTAR, please refer to Ethernet over EtherCAT.
Usable EtherCAT states
ecatPreOP, ecatSafeOP, ecatOP
See also